package com.three.box.config

import com.tencent.mmkv.MMKV

object Constant {
    const val BASE_URL = "https://mt.zyiiilyz.cn/api/app/" //
//    const val BASE_URL = "https://test.zyiiilyz.cn/api/app/" //


    const val LOCAL_SERVER_IP = "192.168.2.250"
    const val TIME_PATTERN = "yyyy-MM-dd HH:mm:ss"
    const val SIGN_TIME_PATTERN = "yyyyMMddHHmmss"
    const val DATE_PATTERN = "yyyy-MM-dd\nEEEE"

    const val CONFIG_LIST = "product_config_list"
    const val GROUP_LIST = "product_group_list"

    const val LOGIN_RESULT = "login_result"
    const val TOKEN = "token"
    const val OPERATE_TYPE = "operate_type"

    const val TEST = false

    fun token(): String {
        return MMKV.defaultMMKV().decodeString(TOKEN) ?: ""
    }
}